<!-- Star of Main -->
<div class="main mt10" >
    <!-- Star of area2s -->
    <div class="area2s">
    	<!-- Star of Col1 -->
    	<div class="col1">
			<div class="breadCrumb">
				<div class="fl"><span class="cRed fb">当前位置：</span> <a href="<?php echo CHtml::normalizeUrl(array('/')); ?>">首页</a>&nbsp;›&nbsp;<strong>搜索结果“<?php echo $key; ?>”</strong></div>
	<?php echo CHtml::form(array('/posts/search'), 'get'); ?>
    <div class="searchS fr">
        &nbsp;<input name="key" type="text" size="25" style="height:14px;" value="<?php echo $key; ?>" />
        <input type="submit" value="搜 索" class="btnL1" />
    </div>
    <?php echo CHtml::endForm(); ?>
            </div>    
            <div class="detailed-list mt20">
                <ul>
                <?php if( ! sizeof($errors) > 0) : ?>
                <?php if(sizeof($posts) > 0) : ?>
                <?php foreach($posts as $post) : ?>
                    <li class="detailed-item">
                        <div class="detailed-title">[<a href="<?php echo CHtml::normalizeUrl(array('/category/view', 'id' => $post->categories[0]->terms->termId)); ?>" title="<?php echo $post->categories[0]->terms->name; ?>" class="cGre1"><?php echo $post->categories[0]->terms->name; ?></a>]&thinsp;<a href="<?php echo $post->getRewrittenUrl(); ?>" class="cGre1"><?php echo $post->postTitle; ?></a><?php if($post->hasTopic()) : ?><span class="fr" style="font-size:12px;">话题：<a href="<?php echo CHtml::normalizeUrl(array('/posts/listbytopic', 'id' => $post->topics[0]->termTaxonomyId)) ?>" title="<?php echo $post->topics[0]->terms->name; ?>"><?php echo $post->topics[0]->terms->name; ?></a></span><?php endif ?></div>
                        <div class="detailed-intro"><?php echo truncStr(strip_tags($post->postContent), 300, '...'); ?>
                        </div>
                        <div class="detailed-attr">
                            <a href="<?php echo $post->getRewrittenUrl(); ?>" class="cOrg1">查看全文</a>&nbsp;|&nbsp;<span class="">阅读&nbsp;<span class="cRed"><?php echo $post->postRead; ?></span></span>&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="cHui1">发表于：2009-10-26 19：25</span>
                        </div>
                    </li>
				<?php endforeach; ?>
				<?php else: ?>
				<li>没有相关搜索结果，请您重新输入搜索关键字重试。</li>
				<?php endif; ?>
				<?php else : ?>
					<li><?php echo $errors[0]; ?></li>
				<?php endif; ?>
                </ul>
             </div>    
            <div class="page1 mt10">       	
				<?php $this->widget('CLinkPager', array('pages' => $pages)); ?>
            </div>
        </div>
        <!-- End of Col1 -->
        <!-- Star of Col2 -->
        <div class="col2">
    		<?php $this->widget('MustKnow'); ?>
            <div class="smallAd mt10"><img src="<?php echo Yii::app()->baseUrl.'/images/a-exp1.png'; ?>" /></div>
        	<?php $this->widget('HotPosts'); ?>
            <?php $this->widget('HotThreads'); ?>
            <div class="smallAd mt10"><img src="<?php echo Yii::app()->baseUrl.'/images/a-exp2.png'; ?>" /></div>
            <?php $this->widget('Literal') ?>
        </div>
        <!-- End of Col2 -->
    </div><!-- End of area3s -->
</div>
<!-- End of Main --> 